/*
 * nativeactivity.h
 *
 *  Created on: 07 Nis 2012
 *      Author: hframe
 */

#ifndef NATIVEACTIVITY_H_
#define NATIVEACTIVITY_H_
#include "activity.h"
#include "ui/surface.h"
#include "ui/element.h"

namespace androidplus{

class nativeactivity:public virtual activity,public virtual  ui::surface {
public:
	nativeactivity();
	virtual ~nativeactivity();
public:
	virtual void activity_on_start();
	virtual void activity_on_stop();
	virtual void activity_on_pause();
	virtual void activity_on_resume();
	virtual void activity_on_destroy();
	virtual void activity_on_configuration_changed();
	void activity_before_destroy();
	void activity_on_window_destroyed();
	void activity_on_window_created();
public:
	virtual void on_event_touch_move(const input::event::motion_event *event);
protected:
    virtual void render();
    virtual void initialize_graphics_matrix()=0;




protected:
    ui::element *child;

};
}

#endif /* NATIVEACTIVITY_H_ */
